
add_library(Openssl INTERFACE)
if(LINUX_X86_64)
    target_link_directories(Openssl INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIBDIR}/lib)
    target_link_libraries(Openssl INTERFACE ssl         
                                            crypto
                                            dl
                                            pthread)

elseif(RK3308_ARM64)
    target_link_libraries(Openssl INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIBDIR}/lib/libssl.a          
                                            ${CMAKE_CURRENT_SOURCE_DIR}/${LIBDIR}/lib/libcrypto.a
                                            dl
                                            pthread)

elseif(ANDROID_ARM32 OR ANDROID_ARM64)
    target_link_libraries(Openssl INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/${LIBDIR}/lib/libssl.a          
                                            ${CMAKE_CURRENT_SOURCE_DIR}/${LIBDIR}/lib/libcrypto.a
                                            dl)
endif()



